package com.parfinex.java.phase1.module2.task08;

public class WorkerTest {
    public static void main(String[] args){
        Worker w1 = new Worker();
        w1.show();
        System.out.println("--------------");
        //2.使用有参方式构造worker类型的对象并打印特征
        Worker w2 = new Worker("zhangfei",30,3000);
        w2.show();
        w2.eat("豆牙");
        w2.play("绝地求生");
        w2.work();
    }
}
